package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.RecycleCarsBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecycleCarsMapper extends RootMapper<RecycleCarsBean> {

    /**
     * 根据订单号查询
     *
     * @param orderCode    订单号
     * @param recycleState 状态
     * @return
     */
    List<RecycleCarsBean> getRecycleCars(@Param("orderCode") Long orderCode,
                                         @Param("recycleState") Integer recycleState);

    long getRecycleCarsTotal();
}